#ifndef DOTGRAPHVIEW_H
#define DOTGRAPHVIEW_H

#include <QLabel>
#include <QImage>

class DotGraphView : public QLabel
{
    Q_OBJECT
public:
    DotGraphView(QImage &image);

public slots:
    void zoomIn() {pixHeight *= 1.1; zoomToPixHeight();}
    void zoomOut() {pixHeight *= 0.9; zoomToPixHeight();}

private:

    void zoomToPixHeight();
    QPixmap pixmap;
    int pixHeight;
};

#endif // DOTGRAPHVIEW_H
